
public class Day3 {

    public static int romanToInt (String s) {

        return 0;

    }

    public static void main(String[] args) {



//        System.out.println(Arrays.toString(removeElement(new int[]{1,3,1,4,3,3,2,3,3,4,5,4,3,3}, 3)));

    }

    public static int[] removeElement (int[] nums, int val) {

        int len = 0;
        int eleIndex = 0;

        for (int i = 0; i < nums.length; i++) {

            if (nums[i] != val) {

                len++;
                nums[eleIndex] = nums[i];
                eleIndex = len;

            }

        }

//        return len;

        return nums;
    }

}
